package com.excel.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;
import java.util.ArrayList;
import java.util.List;

/**
 * @author User
 */
@Getter
@Setter
public class EvaluateObjImportExcelData extends BaseExcelData {

    /**
     * *评估对象ID-邮箱前缀
     */
    @Excel(name = "*评估对象ID-邮箱前缀")
    @ExcelProperty(value = "*评估对象ID-邮箱前缀")
    private String userId;

    /**
     * 类别
     */
    @Excel(name = "类别")
    @ExcelProperty(value = "类别")
    private String category;

    /**
     * 通道
     */
    @Excel(name = "通道")
    @ExcelProperty(value = "通道")
    private String passageway;

    /**
     * 评估问卷ID
     */
    @Excel(name = "*评估问卷ID")
    @ExcelProperty(value = "*评估问卷ID")
    private String questionnaireCode;

    /**
     * 评估问卷名称
     */
    @Excel(name = "评估问卷名称")
    @ExcelProperty(value = "评估问卷名称")
    private String questionnaireName;

    /**
     * 上级ID-邮箱前缀
     */
    @Excel(name = "上级ID-邮箱前缀")
    @ExcelProperty(value = "上级ID-邮箱前缀")
    private String leaderUserId;

    /**
     * HRBP ID-邮箱前缀
     */
    @Excel(name = "HRBP ID-邮箱前缀")
    @ExcelProperty(value = "HRBP ID-邮箱前缀")
    private String hrbpUserIds;

    /**
     * 其他确认人 ID-邮箱前缀
     */
    @Excel(name = "其他确认人 ID-邮箱前缀")
    @ExcelProperty(value = "其他确认人 ID-邮箱前缀")
    private String otherUserIds;

    /**
     * 评估联系人 ID-邮箱前缀
     */
    @Excel(name = "评估联系人 ID-邮箱前缀")
    @ExcelProperty(value = "评估联系人 ID-邮箱前缀")
    private String contactUserIds;


    public List<String> checkProperties() {
        List<String> result = new ArrayList<>();
        if (StringUtils.isBlank(userId)) {
            //result.add(CustomErrorCodes.errorMessage(CustomErrorCodes.PLEASE_FILL_EVALUATE_OBJ_USER_ID));
        }
        if (StringUtils.isBlank(questionnaireCode)) {
            //result.add(CustomErrorCodes.errorMessage(CustomErrorCodes.QUESTIONNAIRE_ID_IS_NULL));
        }
        return result;
    }

}
